include "Errors.thrift"
namespace java com.emagsoftware.partake.global
struct CommentStatistics {
      1: optional i64 id
      2: required string targetObject,
      3: required i64 commentCnt,
      4: required i64 starLevel,
      5: required i32 commentType,
      6: optional i64 verifyCnt,
      7: optional i64 userCnt
}
struct CommentStatisticsPageResult {
      1: required  list<CommentStatistics> commentStatList,
      2: required  i32  total
}
struct GameStarDist{
        1: optional i64 id
        2: required string serviceId,
        3: required i64 commentCnt,
        4: required i64 starLevel,
        5: optional i64 verifyCnt,
        6: optional i64 userCnt
}
struct GameStarDistResult{
    1: required  list<GameStarDist> gameStarDistList,
    2: required  i32 averageStarLevel
}
service CommentStatisticsClient{
     CommentStatistics  getCommentStatistics(
                        1:required string targetObject
                        2:required string commentType
     )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),

     CommentStatisticsPageResult queryCommentStatistics(
                        1: required list<string> commentType
                        2: optional i32 offset
                        3: optional i32 max
     )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),

     list<CommentStatistics> queryCommentStatisticsList(
                       1:required list<string>  targetObjects
                       2:required string commentType
     )throws (1: Errors.ServiceRuntimeException serviceRuntimeException),

      GameStarDistResult  queryGameStarDistribute (
                         1:required string serviceId
      )throws (1: Errors.ServiceRuntimeException serviceRuntimeException)
}
